STEP 12: Let's tell the player that the computer won if they picked "paper" and the computer also picked "scissors".

  • Add if and and test if choice equals "paper" and computer_choice equals "scissors".
  • Drag out Set Text. Assign the command to result.
  • Change the string to "Computer wins!" since scissors beats paper.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)